let i =0;

let net = setInterval(async ()=>{
    console.log(i++);
    if(i===5){
        clearInterval(net)
        clearInterval(a)
    }
},500)



let a  = setInterval(()=>{
    console.log("a")
},100)